package cn.autumnorange.app.common.rpc.anntation;

import org.aopalliance.intercept.MethodInvocation;

import java.lang.annotation.Annotation;

public interface AnnotationStrategy<T,A extends Annotation> extends GlobalAnnotationStrategy{
    T annotationTargetHandle(MethodInvocation invocation,Annotation annotation) throws Throwable;

    /**
     * 是否需要注解才执行注解策略逻辑方法
     */
    public boolean isNeedAnnotation();

    public void setNeedAnnotation(boolean needAnnotation) ;
}
